package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;



@Entity 
@Table(name="tworkshift")
public class TWorkShift implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private String WorkShiftID;//交班记录ID(WorkShiftID)
		
	private String ToEmployeeID;//本班员工(ToEmployeeID)
	
	private Date HappenTime = new Date();//交班时间(HappenTime)
	
	private String UpEmployeeID;//交班员工(UpEmployeeID)
	
	private double UpAmount;//交接金额(UpAmount)
	
	private double ToAmount;//本班总金额(ToAmount)
	
	private String ClientID;//客户端ID(ClientID)
	
	private byte Status;//状态(Status)
	
	private double STotalIncome;//系统记录总收入(STotalIncome)
	
	private int SOrderCount;//系统记录总消费次数(SOrderCount)
	
	private double SOrderAmount;//系统记录订单收入(SOrderAmount)
	
	private double SOrderCardAmount;//系统记录订单会员卡总金额(SOrderCardAmount)
	
	private double SOrderCachCardAmount;//系统记录订单优惠券金额(SOrderCachCardAmount)
	
	private double SOrderDebtAmount;//系统记录订单顾客欠款(SOrderDebtAmount)
	
	private double SOrderFreeAmount;//系统记录订单免单金额(SOrderFreeAmount)
	
	private double SCardRechangeAmount;//系统记录会员卡充值金额(SCardRechangeAmount)
	
	private double SOtherCashAmount;//系统记录其他现金收入(SOtherCashAmount)
	
	private double SOtherOutCachAmount;//系统记录其他现金支出(SOtherOutCachAmount)
	
	private double STotalAmount;//系统记录合计总金额(STotalAmount)
	
	private double SOrderAccountAmount;//系统记录订单各账号总金额(SOrderAccountAmount)
	
	private double STotalInAmount;//系统记录记录合计收入(STotalInAmount)
	
	private double STotalOutAmount;//系统记录合计总支出(STotalOutAmount)

	private Date EndTime;//用于查询，不进入数据库
	
	@Id
	@Column(name="WorkShiftID",length=15)
	public String getWorkShiftID() {
		return WorkShiftID;
	}

	public void setWorkShiftID(String workShiftID) {
		WorkShiftID = workShiftID;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="HappenTime",length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@Column(name="UpAmount",precision = 20,scale = 3)
	public double getUpAmount() {
		return UpAmount;
	}

	public void setUpAmount(double upAmount) {
		UpAmount = upAmount;
	}

	@Column(name="ToAmount", precision = 20, scale = 3)
	public double getToAmount() {
		return ToAmount;
	}

	public void setToAmount(double toAmount) {
		ToAmount = toAmount;
	}

	@Column(name="ClientID",length=15)
	public String getClientID() {
		return ClientID;
	}

	public void setClientID(String clientID) {
		ClientID = clientID;
	}

	@Column(name="Status")
	public byte getStatus() {
		return Status;
	}

	public void setStatus(byte status) {
		Status = status;
	}

	@Column(name="ToEmployeeID",length=15)
	public String getToEmployeeID() {
		return ToEmployeeID;
	}

	public void setToEmployeeID(String toEmployeeID) {
		ToEmployeeID = toEmployeeID;
	}

	@Column(name="UpEmployeeID",length=15)
	public String getUpEmployeeID() {
		return UpEmployeeID;
	}

	public void setUpEmployeeID(String upEmployeeID) {
		UpEmployeeID = upEmployeeID;
	}

	@Column(name="STotalIncome",precision = 20,scale = 3)
	public double getSTotalIncome() {
		return STotalIncome;
	}

	public void setSTotalIncome(double sTotalIncome) {
		STotalIncome = sTotalIncome;
	}

	@Column(name="SOrderCount")
	public int getSOrderCount() {
		return SOrderCount;
	}

	public void setSOrderCount(int sOrderCount) {
		SOrderCount = sOrderCount;
	}

	@Column(name="SOrderAmount",precision = 20,scale = 3)
	public double getSOrderAmount() {
		return SOrderAmount;
	}

	public void setSOrderAmount(double sOrderAmount) {
		SOrderAmount = sOrderAmount;
	}

	@Column(name="SOrderCardAmount",precision = 20,scale = 3)
	public double getSOrderCardAmount() {
		return SOrderCardAmount;
	}

	public void setSOrderCardAmount(double sOrderCardAmount) {
		SOrderCardAmount = sOrderCardAmount;
	}

	@Column(name="SOrderCachCardAmount",precision = 20,scale = 3)
	public double getSOrderCachCardAmount() {
		return SOrderCachCardAmount;
	}

	public void setSOrderCachCardAmount(double sOrderCachCardAmount) {
		SOrderCachCardAmount = sOrderCachCardAmount;
	}

	@Column(name="SOrderDebtAmount",precision = 20,scale = 3)
	public double getSOrderDebtAmount() {
		return SOrderDebtAmount;
	}

	public void setSOrderDebtAmount(double sOrderDebtAmount) {
		SOrderDebtAmount = sOrderDebtAmount;
	}

	@Column(name="SOrderFreeAmount",precision = 20,scale = 3)
	public double getSOrderFreeAmount() {
		return SOrderFreeAmount;
	}

	public void setSOrderFreeAmount(double sOrderFreeAmount) {
		SOrderFreeAmount = sOrderFreeAmount;
	}

	@Column(name="SCardRechangeAmount",precision = 20,scale = 3)
	public double getSCardRechangeAmount() {
		return SCardRechangeAmount;
	}

	public void setSCardRechangeAmount(double sCardRechangeAmount) {
		SCardRechangeAmount = sCardRechangeAmount;
	}

	@Column(name="SOtherCashAmount",precision = 20,scale = 3)
	public double getSOtherCashAmount() {
		return SOtherCashAmount;
	}

	public void setSOtherCashAmount(double sOtherCashAmount) {
		SOtherCashAmount = sOtherCashAmount;
	}

	@Column(name="SOtherOutCachAmount",precision = 20,scale = 3)
	public double getSOtherOutCachAmount() {
		return SOtherOutCachAmount;
	}

	public void setSOtherOutCachAmount(double sOtherOutCachAmount) {
		SOtherOutCachAmount = sOtherOutCachAmount;
	}

	@Column(name="STotalAmount",precision = 20,scale = 3)
	public double getSTotalAmount() {
		return STotalAmount;
	}

	public void setSTotalAmount(double sTotalAmount) {
		STotalAmount = sTotalAmount;
	}

	@Column(name="SOrderAccountAmount",precision = 20,scale = 3)
	public double getSOrderAccountAmount() {
		return SOrderAccountAmount;
	}

	public void setSOrderAccountAmount(double sOrderAccountAmount) {
		SOrderAccountAmount = sOrderAccountAmount;
	}

	@Column(name="STotalInAmount",precision = 20,scale = 3)
	public double getSTotalInAmount() {
		return STotalInAmount;
	}

	public void setSTotalInAmount(double sTotalInAmount) {
		STotalInAmount = sTotalInAmount;
	}

	@Column(name="STotalOutAmount",precision = 20,scale = 3)
	public double getSTotalOutAmount() {
		return STotalOutAmount;
	}

	public void setSTotalOutAmount(double sTotalOutAmount) {
		STotalOutAmount = sTotalOutAmount;
	}

	public Date getEndTime() {
		return EndTime;
	}

	public void setEndTime(Date endTime) {
		EndTime = endTime;
	}
	
	
}
